﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.HtmlControls;

public class DetailMaster : System.Web.UI.MasterPage
{
    protected HtmlTableRow trSimpleInfo;
    protected HtmlTableRow trTabber;

    public bool UseTabber
    {
        get
        {
            if (ViewState["UseTabber"] == null)
                ViewState["UseTabber"] = false;
            return (bool)ViewState["UseTabber"];
        }
        set
        {
            ViewState["UseTabber"] = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (UseTabber)
            trSimpleInfo.Visible = false;
        else
            trTabber.Visible = false;
    }
}